import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

const request = {
    //根据条件分页查询机械发料
    mechanicalStoreIssue (params) {
        return httpPost({
            url: '/material/mechanicalMaterialIssuance/listByEntity',
            params
        })
    },
    //新增机械发料
    AddMechanicalStoreIssue (params) {
        return httpPost({
            url: '/material/mechanicalMaterialIssuance/create',
            params
        })
    },

    //修改机械发料
    EditMechanicalStoreIssue (params) {
        return httpPost({
            url: '/material/mechanicalMaterialIssuance/update',
            params
        })
    },
    //更新机械发料明细及物资明细信息
    EditMechanicalStoreIssueList (params) {
        return httpPost({
            url: '/material/mechanicalMaterialIssuance/updateDtlList',
            params
        })
    },
    // 冲红单
    redSingle (billId) {
        return httpGet({
            url: '/material/mechanicalMaterialIssuance/initRedBill',
            params: {
                billId
            }
        })
    },

}

export default request